﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Services;
using DDSC.OracleADO;
using System.Collections;
using System.Text;
using System.Data;

public partial class bas_trans_to_server : BasePermissionPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //JS發有Exception時將錯誤訊息寫入DB
    }
    [WebMethod]
    public static Object SAVE_ERROR(string PROG_NAME, string FUNC_NAME, string USER, string error_msg, string ERR_STATUS, string ERR_CODE, string ERR_DATA)
    //public static Object SAVE_ERROR(string PROG_NAME)
    {
        Object results = new Object();
        try
        {
            bas_trans_to_server detail = new bas_trans_to_server();
            detail.ERROR_DBSAVE(PROG_NAME, FUNC_NAME, error_msg, USER, ERR_STATUS, ERR_CODE, ERR_DATA);
        }
        catch (Exception ex)
        {
            results = "error" + ex.Message;
        }
        return (results);
    }
    
}